package com.urms.mapper;

import com.urms.entity.QueryUserCondition;
import com.urms.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserMapper {
    User selectByLoginNameAndPwd(@Param("user")User user);
    List<User> selectAll();
    List<User> selectUsersByQuc(@Param("quc") QueryUserCondition quc);
    Integer insertUser(@Param("user") User user);

    Integer deleteUserById(@Param("userId") Integer userId);

    Integer updateHidden(@Param("userId") Integer userId);

    Integer updateUserStatusById(@Param("id")Integer id);

    User getPassword(Integer userId);

    Integer updateUserById(@Param("user") User user);

    List<User> userSelectByCondition(QueryUserCondition quc);

    Integer selectByuserName(String userLoginName);

    Integer selectByPhone(String userPhone);

    Integer removeUserByIds(@Param("ids")Integer[] ids);

}
